package org.jumiz.framework.base.page;

/**
 * 分页
 * @author jumiz
 */
public interface Page<T> {

    /**
     * 获取分页对象
     * @param size
     * @param current
     * @return
     */
    default Page of(long size, long current) {
        PageRequest<T> page = new PageRequest<>();
        page.setCurrent(current);
        page.setSize(size);
        return page;
    }
}
